import numpy as np
import torch
data = [[1.0,2],[3,4]]
data = np.array(data)
print(data)
# numpy转张量
t = torch.from_numpy(data)
# 张量转numpy
b=t.numpy()
print(b)
pass
